/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lesson3.com.demo.lang;

import java.util.Properties;


public class SysPropertiesExample {
    public static void main(String[] args){
        Properties props = System.getProperties();
        props.setProperty("com.myorg.whatevah.subpkg", "campaign ads");
        
        props.list(System.out);
        
        
        String value = props.getProperty("com.myorg.whatevah.subpkg.junk");
        System.out.println("The value of com.myorg.whatevah.subpkg is "+value);
        
        System.setProperty("anotherAppSpecificSysProperty","hello thursday");
        value = System.getProperty("anotherAppSpecificSysProperty");
        System.out.println("the value is "+value);
        
        Properties myProps = new Properties();
        // yada
        
        System.setSecurityManager(new MySecurityManager());
    }

}
